import request from '@/utils/request'

// 查询进项抵扣列表
export function listInputDeduction(query) {
  return request({
    url: '/cld/inputDeduction/list',
    method: 'get',
    params: query
  })
}

// 查询进项抵扣详细
export function getInputDeduction(inputDeductionId) {
  return request({
    url: '/cld/inputDeduction/' + inputDeductionId,
    method: 'get'
  })
}

// 新增进项抵扣
export function addInputDeduction(data) {
  return request({
    url: '/cld/inputDeduction',
    method: 'post',
    data: data
  })
}

// 修改进项抵扣
export function updateInputDeduction(data) {
  return request({
    url: '/cld/inputDeduction',
    method: 'put',
    data: data
  })
}

// 删除进项抵扣
export function delInputDeduction(inputDeductionId) {
  return request({
    url: '/cld/inputDeduction/' + inputDeductionId,
    method: 'delete'
  })
}


// 批量修改抵扣
export function batchDeduction(data) {
  return request({
    url: '/cld/inputDeduction/batchDeduction',
    method: 'put',
    data: data
  })
}
